<?php

namespace App\Models;

class Balance extends BaseModel
{
  protected $casts = [
    'value' => 'float',
    'b4' => 'float',
    'after' => 'float',
  ];

  public function user()
  {
    return $this->belongsTo(User::class);
  }

  // public function seller()
  // {
  //   return $this->belongsTo(User::class, 'seller_id');
  // }

  public function sell()
  {
    return $this->belongsTo(Sell::class);
  }
}
